package cn.edu.shou.lab.config.utils;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class FileStreamUtil {
    public static InputStream getFileStream(String filePath) throws FileNotFoundException {
        if(filePath == null || filePath.isEmpty()){
            throw new RuntimeException("file path can not be null !");
        }
        File file = new File(filePath);
        return new FileInputStream(file);
    }
}
